#ifndef NamedObject_h
#define NamedObject_h

#include <string>
#include "Object.h"

class NamedObject : public Object
{
public:
	NamedObject(std::string p_name, type p_type, color p_color,
		double p_mass, double p_radius,
		Vector2 p_pos, Vector2 p_velocity)
		: Object(p_type, p_color, p_mass, p_radius, p_pos, p_velocity)
	{
		m_name = p_name;
	}
	std::string getName() const
	{
		return m_name;
	}
protected:
	std::string m_name;
};	

#endif //NamedObject_h
